import Vue from "vue";
import Vuex from "vuex";
// Vue.use(Vuex);

// export default new Vuex.Store({
//   state: {},
//   mutations: {},
//   actions: {}
// });

// 把store下的所有文件全部import进来“import * as”是一种特殊语法
import * as actions from "./actions";
import state from "./state";
import mutations from "./mutations";
Vue.use(Vuex);

export default new Vuex.Store({
  actions,
  state,
  mutations
});
